'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.post('/upload', controller.upload.uploadFiles);
  router.get('/get_user_followers', controller.home.getUserFollowers);
  router.get('/user_followers_list', controller.home.userFollowersList);
  router.get('/get_random_item', controller.home.randomApi);
  router.get('/error401', controller.home.respError401);
};
